import { createRouter, createWebHistory } from 'vue-router'
import HomeView from './views/HomeView.vue'
import LayoutView from './views/LayoutView.vue'
import Params from './views/main/Params.vue'
import Product from './views/main/Product.vue'
import ADCategory from './views/main/ADCategory.vue'

const routes = [
  {
    path: '/',
    name: 'Layout',
    component: LayoutView
  },
  {
    path: '/',
    name: 'Home',
    component: HomeView
  },
  {
    path: '/params',
    name: 'Params',
    component: Params
  },
  {
    path: '/product',
    name: 'Product',
    component: Product
  },
  {
    path: '/ad',
    name: 'ADCategory',
    component: ADCategory
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
